cask 'deploystudio' do
  version '1.7.8'
  sha256 'a7d71ed8e72498c8f7b37349458afd0cd74ba7a95313f26ea1ba05f4d1362071'

  url "http://www.deploystudio.com/Downloads/DeployStudioServer_v#{version}.dmg"
  appcast 'http://www.deploystudio.com/category/downloads/'
  name 'DeployStudio Server'
  homepage 'http://www.deploystudio.com/'

  pkg "DeployStudioServer_v#{version}.pkg"

  uninstall delete:    [
                         '/Applications/Utilities/DeployStudio Admin.app',
                         '/Applications/Utilities/DeployStudio Assistant.app',
                         '/Applications/Utilities/DeployStudio Runtime.app',
                       ],
            launchctl: 'com.deploystudio.server',
            pkgutil:   'com.deploystudio.*'
end
